package cn.iocoder.yudao.module.mp.service.message;

import cn.iocoder.yudao.module.mp.controller.admin.message.vo.message.MpTemplateRecordPageReqVO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import cn.iocoder.yudao.module.mp.dal.dataobject.message.MpTemplateRecordDO;
import cn.iocoder.yudao.framework.common.pojo.PageResult;

import cn.iocoder.yudao.module.mp.dal.mysql.message.MpTemplateRecordMapper;


/**
 * 消息模板推送记录 Service 实现类
 *
 * @author 数创万维
 */
@Service
@Validated
public class MpTemplateRecordServiceImpl implements MpTemplateRecordService {

    @Resource
    private MpTemplateRecordMapper templateRecordMapper;


    @Override
    public void deleteTemplateRecord(Long id) {
        // 删除
        templateRecordMapper.deleteById(id);
    }



    @Override
    public MpTemplateRecordDO getTemplateRecord(Long id) {
        return templateRecordMapper.selectById(id);
    }

    @Override
    public PageResult<MpTemplateRecordDO> getTemplateRecordPage(MpTemplateRecordPageReqVO pageReqVO) {
        return templateRecordMapper.selectPage(pageReqVO);
    }

}